<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormResults.aspx.cs" Inherits="FormsGenerator.FormResults" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Form Results</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Styles/Default.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="LabelErrorMessage" runat="server" ForeColor="Red" Visible="False"
            CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
        <asp:GridView ID="GridViewResults" runat="server" EnableViewState="False" AllowSorting="True"
            OnRowDataBound="GridViewResults_RowDataBound" OnSorting="GridViewResults_Sorting">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href="#" id="HyperLinkDetails" runat="server" onclick='<%# "window.open(\"FormResultDetails.aspx?id=" + GUID + "&resultid=" + Eval("pivotid") + "\",\"FormResultDetails\", \"toolbar=yes,titlebar=no,resizable=yes,width=800,height=600,scrollbars=yes\");" %>'>
                            [View Posted Form]</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href="#" id="HyperLinkPrint" runat="server" onclick='<%# "window.open(\"PrintFormData.aspx?id=" + GUID + "&resultid=" + Eval("pivotid") + "\",\"FormResultDetails\", \"toolbar=yes,titlebar=no,resizable=yes,width=800,height=600,scrollbars=yes\");" %>'>
                            [Print]</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                No results for this form
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
